In [1]:
%matplotlib inline
from ggplot import *
import pandas as pd
In [2]:
def get_color_swatch():
    class gg_stub:
        pass
    return (gg_stub() + scale_color_brewer()).manual_color_list

swatch = get_color_swatch()
df = pd.DataFrame({"x": range(len(swatch)), "y": 1, "swatch": swatch })
ggplot(df, aes(x='x', y='y', color='swatch')) + \
    geom_point(size=20000) + \
    scale_color_identity() + \
    xlim(-0.4, 2.4) + \
    ylim(0.98, 1.02)
Out[2]:
<ggplot: (285169837)>
In [ ]: